<script type="text/javascript">
 function checkLogin()
 {
     alert('您还没有登陆');
     return false;
 } function godownload(dowloadid)
    {
        window.location.href = 'main/courseware/download_courseware.php?courseware_id='+dowloadid;
    }
</script>
 <style type="text/css">
 #news { 
 line-height: 180%; 
 }

 #news #mains table {
 border-collapse: collapse;
 line-height: 1.6em;
 }
 #news #mains tbody th {
 background: none repeat scroll 0 0 #F9F9F9;
 font-weight: normal;
 }
 #news #mains th {
 background: none repeat scroll 0 0 #EEEEEE;
 border: 1px solid #DDDDDD;
 font-size: 13px;
 font-weight: bold;
 padding: 5px;
 }
 #news #mains td {
 border: 1px solid #DDDDDD;
 padding: 5px;
 }
 </style>
<div id="indexcates">
         <?php
                global $db;
                $coursewareid = $_GET['courseware_id'];
                $teacherid = $_GET['teacherid'];
                $sql_courseware = "select * from nettteach_courseware  where writerid ='".$teacherid."' and id ='".$coursewareid."' order by times desc ";
                $result_courseware = $db -> query($sql_courseware);
                while($courseware_row = $db->fetch_array($result_courseware))
                {  
        ?>
        <div class="row-fluid" >
            <ul class="breadcrumb">
                <li><?php echo (fs_get_objinfo(nettteach_member, id, $teacherid, realname))?> &nbsp;教师课件下载 </li>
            </ul>
        </div>	
    <div align="left" id="news" >
        <div id="mains">
      <table width="100%" >
        <tr  >
          <th style="width: 20%">课件标题</th>
          <td  style="width: 80%"><?php echo ($courseware_row['title'])?> </td>
        </tr>
        <tr>
          <th >课件简介</th>
          <td ><?php echo $courseware_row['introduction']?> </td>
        </tr>
        <tr>
          <th >课件大小</th>
          <td><?php echo $courseware_row['size']?>兆</td>
        </tr>
        <tr>
          <th>发布时间</th>
          <td><?php echo date('Y-m-d',$courseware_row['intotime'])?> </td>
        </tr>
        <tr>
          <th>下载次数</th>
          <td><?php echo ($courseware_row['times'])?> </td>
        </tr>
        <tr>
          <th>操 作</th>
          <td><input type="button"  <?php if($_SESSION['sid']==''){echo 'onclick="checkLogin()"';}else{echo 'onclick="godownload('.$courseware_row["id"].' )"';}?> class="kaoshi" value="点击下载" />&nbsp;&nbsp;&nbsp;&nbsp;<input type="button" value="返回上一页" onclick="javascript:history.go(-1)" /></td>
		</tr>  	
<?php
	}
?>
	</table> 
        </div>
</div>
</div>
    

